//
//  ViewController.m
//  CJControllers
//
//  Created by hs on 2017/7/3.
//  Copyright © 2017年 jiachen. All rights reserved.
//

#import "ViewController.h"
#import "OneViewController.h"
#import "TwoViewController.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    
    
    // Do any additional setup after loading the view, typically from a nib.
}
- (IBAction)btnAction:(UIButton *)sender {
    
    if (sender.tag == 100) {
        
        [self.navigationController pushViewController:[[OneViewController alloc]init] animated:YES];
        
    }else if (sender.tag == 101){
        
        TwoViewController *vc = [[UIStoryboard storyboardWithName:@"TwoViewController" bundle:[NSBundle mainBundle]] instantiateViewControllerWithIdentifier:@"TwoViewController"];
        [self.navigationController pushViewController:vc animated:YES];
    }
   
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
